.class public Lcom/esfile/screen/recorder/player/exo/a;
.super Ljava/lang/Object;
.source "DuMediaPlayer.java"

# interfaces
.implements Lcom/google/android/exoplayer/g$c;
.implements Lcom/google/android/exoplayer/upstream/a$a;
.implements Lcom/google/android/exoplayer/n$d;
.implements Lcom/google/android/exoplayer/l$d;
.implements Les/da0;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/player/exo/a$h;,
        Lcom/esfile/screen/recorder/player/exo/a$b;,
        Lcom/esfile/screen/recorder/player/exo/a$a;,
        Lcom/esfile/screen/recorder/player/exo/a$i;,
        Lcom/esfile/screen/recorder/player/exo/a$e;,
        Lcom/esfile/screen/recorder/player/exo/a$f;,
        Lcom/esfile/screen/recorder/player/exo/a$j;,
        Lcom/esfile/screen/recorder/player/exo/a$d;,
        Lcom/esfile/screen/recorder/player/exo/a$c;,
        Lcom/esfile/screen/recorder/player/exo/a$g;,
        Lcom/esfile/screen/recorder/player/exo/a$k;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lcom/google/android/exoplayer/g$c;",
        "Ljava/lang/Object;",
        "Ljava/lang/Object;",
        "Lcom/google/android/exoplayer/upstream/a$a;",
        "Lcom/google/android/exoplayer/n$d;",
        "Lcom/google/android/exoplayer/l$d;",
        "Ljava/lang/Object;",
        "Ljava/lang/Object;",
        "Les/da0;",
        "Ljava/lang/Object<",
        "Ljava/util/Map<",
        "Ljava/lang/String;",
        "Ljava/lang/Object;",
        ">;>;",
        "Ljava/lang/Object;"
    }
.end annotation


# instance fields
.field private a:Lcom/esfile/screen/recorder/player/exo/a$k;

.field private final b:Lcom/google/android/exoplayer/g;

.field private final c:Landroid/os/Handler;

.field private d:I

.field private e:I

.field private f:Z

.field private g:Landroid/view/Surface;

.field private h:Lcom/google/android/exoplayer/u;

.field private i:Lcom/google/android/exoplayer/u;

.field private j:Landroid/content/Context;

.field private k:Lcom/esfile/screen/recorder/player/exo/a$g;

.field private l:Lcom/esfile/screen/recorder/player/exo/a$c;

.field private m:Lcom/esfile/screen/recorder/player/exo/a$d;

.field private n:Lcom/esfile/screen/recorder/player/exo/a$j;

.field private o:Lcom/esfile/screen/recorder/player/exo/a$f;

.field private p:Lcom/esfile/screen/recorder/player/exo/a$e;

.field private q:Lcom/esfile/screen/recorder/player/exo/a$i;

.field private r:Lcom/esfile/screen/recorder/player/exo/a$a;

.field private s:Lcom/esfile/screen/recorder/player/exo/a$b;

.field private t:Lcom/esfile/screen/recorder/player/exo/a$h;

.field private u:F


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 2

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/high16 v0, 0x3f800000    # 1.0f

    .line 2
    iput v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->u:F

    .line 3
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->j:Landroid/content/Context;

    const/4 p1, 0x4

    const/16 v0, 0x3e8

    const/16 v1, 0x1388

    .line 4
    invoke-static {p1, v0, v1}, Lcom/google/android/exoplayer/g$b;->a(III)Lcom/google/android/exoplayer/g;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    .line 5
    invoke-interface {p1, p0}, Lcom/google/android/exoplayer/g;->a(Lcom/google/android/exoplayer/g$c;)V

    .line 6
    new-instance p1, Lcom/google/android/exoplayer/util/j;

    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    invoke-direct {p1, v0}, Lcom/google/android/exoplayer/util/j;-><init>(Lcom/google/android/exoplayer/g;)V

    .line 7
    new-instance p1, Landroid/os/Handler;

    invoke-direct {p1}, Landroid/os/Handler;-><init>()V

    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->c:Landroid/os/Handler;

    const/4 p1, 0x1

    .line 8
    iput p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->e:I

    .line 9
    iput p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->d:I

    .line 10
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    const/4 v0, 0x2

    const/4 v1, -0x1

    invoke-interface {p1, v0, v1}, Lcom/google/android/exoplayer/g;->a(II)V

    return-void
.end method

.method private a(II)V
    .locals 1

    const/4 v0, 0x2

    if-ne p1, v0, :cond_0

    if-eq p2, v0, :cond_0

    .line 71
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->k:Lcom/esfile/screen/recorder/player/exo/a$g;

    if-eqz p1, :cond_0

    .line 72
    invoke-interface {p1, p0}, Lcom/esfile/screen/recorder/player/exo/a$g;->a(Lcom/esfile/screen/recorder/player/exo/a;)V

    :cond_0
    const/4 p1, 0x5

    if-eq p2, p1, :cond_1

    goto :goto_0

    .line 73
    :cond_1
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->l:Lcom/esfile/screen/recorder/player/exo/a$c;

    if-eqz p1, :cond_2

    .line 74
    invoke-interface {p1, p0}, Lcom/esfile/screen/recorder/player/exo/a$c;->a(Lcom/esfile/screen/recorder/player/exo/a;)V

    :cond_2
    :goto_0
    return-void
.end method

.method private b(Landroid/net/Uri;ILcom/google/android/exoplayer/drm/c;)Lcom/esfile/screen/recorder/player/exo/a$k;
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalArgumentException;
        }
    .end annotation

    if-nez p1, :cond_0

    const/4 p1, 0x0

    return-object p1

    .line 7
    :cond_0
    iget-object p3, p0, Lcom/esfile/screen/recorder/player/exo/a;->j:Landroid/content/Context;

    const-string v0, "DuMediaPlayer"

    invoke-static {p3, v0}, Lcom/google/android/exoplayer/util/o;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p3

    const/4 v0, 0x3

    if-ne p2, v0, :cond_1

    .line 8
    new-instance p2, Lcom/esfile/screen/recorder/player/exo/b;

    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->j:Landroid/content/Context;

    invoke-direct {p2, v0, p3, p1}, Lcom/esfile/screen/recorder/player/exo/b;-><init>(Landroid/content/Context;Ljava/lang/String;Landroid/net/Uri;)V

    return-object p2

    .line 9
    :cond_1
    new-instance p1, Ljava/lang/IllegalArgumentException;

    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, "Unsupported type: "

    invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method private declared-synchronized b(I)V
    .locals 4

    monitor-enter p0

    .line 11
    :try_start_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    invoke-interface {v0}, Lcom/google/android/exoplayer/g;->c()Z

    move-result v0

    .line 12
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/exo/a;->g()I

    move-result v1

    .line 13
    iget-boolean v2, p0, Lcom/esfile/screen/recorder/player/exo/a;->f:Z

    if-ne v2, v0, :cond_0

    iget v2, p0, Lcom/esfile/screen/recorder/player/exo/a;->e:I

    if-eq v2, v1, :cond_2

    .line 14
    :cond_0
    iget v2, p0, Lcom/esfile/screen/recorder/player/exo/a;->e:I

    .line 15
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->f:Z

    .line 16
    iput v1, p0, Lcom/esfile/screen/recorder/player/exo/a;->e:I

    .line 17
    iget-object v3, p0, Lcom/esfile/screen/recorder/player/exo/a;->q:Lcom/esfile/screen/recorder/player/exo/a$i;

    if-eqz v3, :cond_1

    .line 18
    iget-object v3, p0, Lcom/esfile/screen/recorder/player/exo/a;->q:Lcom/esfile/screen/recorder/player/exo/a$i;

    invoke-interface {v3, v0, v1, p1}, Lcom/esfile/screen/recorder/player/exo/a$i;->a(ZII)V

    :cond_1
    if-eq v2, v1, :cond_2

    .line 19
    invoke-direct {p0, v2, v1}, Lcom/esfile/screen/recorder/player/exo/a;->a(II)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 20
    :cond_2
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method private b(Z)V
    .locals 3

    .line 21
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->h:Lcom/google/android/exoplayer/u;

    if-nez v0, :cond_0

    return-void

    :cond_0
    const/4 v1, 0x1

    if-eqz p1, :cond_1

    .line 22
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    iget-object v2, p0, Lcom/esfile/screen/recorder/player/exo/a;->g:Landroid/view/Surface;

    invoke-interface {p1, v0, v1, v2}, Lcom/google/android/exoplayer/g;->a(Lcom/google/android/exoplayer/g$a;ILjava/lang/Object;)V

    goto :goto_0

    .line 23
    :cond_1
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    iget-object v2, p0, Lcom/esfile/screen/recorder/player/exo/a;->g:Landroid/view/Surface;

    invoke-interface {p1, v0, v1, v2}, Lcom/google/android/exoplayer/g;->b(Lcom/google/android/exoplayer/g$a;ILjava/lang/Object;)V

    :goto_0
    return-void
.end method

.method private k()V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/player/exo/a;->b(I)V

    return-void
.end method


# virtual methods
.method public a(I)I
    .locals 1

    .line 10
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    invoke-interface {v0, p1}, Lcom/google/android/exoplayer/g;->a(I)I

    move-result p1

    return p1
.end method

.method public a()V
    .locals 0

    return-void
.end method

.method public a(F)V
    .locals 1

    .line 14
    iget v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->u:F

    cmpl-float v0, v0, p1

    if-eqz v0, :cond_0

    .line 15
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    invoke-interface {v0, p1}, Lcom/google/android/exoplayer/g;->a(F)V

    .line 16
    iput p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->u:F

    :cond_0
    return-void
.end method

.method public a(FZ)V
    .locals 2

    .line 11
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->i:Lcom/google/android/exoplayer/u;

    if-nez v0, :cond_0

    return-void

    :cond_0
    const/4 v1, 0x1

    if-eqz p2, :cond_1

    .line 12
    iget-object p2, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    invoke-static {p1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object p1

    invoke-interface {p2, v0, v1, p1}, Lcom/google/android/exoplayer/g;->a(Lcom/google/android/exoplayer/g$a;ILjava/lang/Object;)V

    goto :goto_0

    .line 13
    :cond_1
    iget-object p2, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    invoke-static {p1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object p1

    invoke-interface {p2, v0, v1, p1}, Lcom/google/android/exoplayer/g;->b(Lcom/google/android/exoplayer/g$a;ILjava/lang/Object;)V

    :goto_0
    return-void
.end method

.method public a(IIIF)V
    .locals 6

    .line 51
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->n:Lcom/esfile/screen/recorder/player/exo/a$j;

    if-eqz v0, :cond_0

    move-object v1, p0

    move v2, p1

    move v3, p2

    move v4, p3

    move v5, p4

    .line 52
    invoke-interface/range {v0 .. v5}, Lcom/esfile/screen/recorder/player/exo/a$j;->a(Lcom/esfile/screen/recorder/player/exo/a;IIIF)V

    :cond_0
    return-void
.end method

.method public a(IJ)V
    .locals 1

    .line 53
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->p:Lcom/esfile/screen/recorder/player/exo/a$e;

    if-eqz v0, :cond_0

    .line 54
    invoke-interface {v0, p1, p2, p3}, Lcom/esfile/screen/recorder/player/exo/a$e;->a(IJ)V

    :cond_0
    return-void
.end method

.method public a(IJJ)V
    .locals 6

    .line 61
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->o:Lcom/esfile/screen/recorder/player/exo/a$f;

    if-eqz v0, :cond_0

    move v1, p1

    move-wide v2, p2

    move-wide v4, p4

    .line 62
    invoke-interface/range {v0 .. v5}, Lcom/esfile/screen/recorder/player/exo/a$f;->a(IJJ)V

    :cond_0
    return-void
.end method

.method public a(J)V
    .locals 6

    .line 45
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/exo/a;->d()J

    move-result-wide v0

    sub-long/2addr p1, v0

    .line 46
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    invoke-interface {v0}, Lcom/google/android/exoplayer/g;->d()J

    move-result-wide v0

    const/high16 v2, 0x3f800000    # 1.0f

    const-wide/16 v3, 0x0

    cmp-long v5, v0, v3

    if-gtz v5, :cond_0

    const/high16 p1, 0x3f800000    # 1.0f

    goto :goto_0

    :cond_0
    long-to-float p1, p1

    iget-object p2, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    .line 47
    invoke-interface {p2}, Lcom/google/android/exoplayer/g;->d()J

    move-result-wide v0

    long-to-float p2, v0

    div-float/2addr p1, p2

    :goto_0
    const/4 p2, 0x0

    .line 48
    invoke-static {v2, p1}, Ljava/lang/Math;->min(FF)F

    move-result p1

    invoke-static {p2, p1}, Ljava/lang/Math;->max(FF)F

    move-result p1

    const/high16 p2, 0x42c80000    # 100.0f

    mul-float p1, p1, p2

    float-to-int p1, p1

    .line 49
    iget-object p2, p0, Lcom/esfile/screen/recorder/player/exo/a;->s:Lcom/esfile/screen/recorder/player/exo/a$b;

    if-eqz p2, :cond_1

    .line 50
    invoke-interface {p2, p1}, Lcom/esfile/screen/recorder/player/exo/a$b;->a(I)V

    :cond_1
    return-void
.end method

.method public a(JZ)V
    .locals 7

    .line 38
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    invoke-interface {v0}, Lcom/google/android/exoplayer/g;->getDuration()J

    move-result-wide v0

    const-wide/16 v2, 0x0

    const-wide/16 v4, -0x1

    cmp-long v6, v0, v4

    if-nez v6, :cond_0

    goto :goto_0

    .line 39
    :cond_0
    invoke-static {v2, v3, p1, p2}, Ljava/lang/Math;->max(JJ)J

    move-result-wide p1

    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/exo/a;->e()J

    move-result-wide v0

    invoke-static {p1, p2, v0, v1}, Ljava/lang/Math;->min(JJ)J

    move-result-wide v2

    .line 40
    :goto_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    invoke-interface {p1, v2, v3, p3}, Lcom/google/android/exoplayer/g;->a(JZ)V

    return-void
.end method

.method public a(Landroid/media/MediaCodec$CryptoException;)V
    .locals 1

    .line 63
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->o:Lcom/esfile/screen/recorder/player/exo/a$f;

    if-eqz v0, :cond_0

    .line 64
    invoke-interface {v0, p1}, Lcom/esfile/screen/recorder/player/exo/a$f;->a(Landroid/media/MediaCodec$CryptoException;)V

    :cond_0
    return-void
.end method

.method public a(Landroid/net/Uri;ILcom/google/android/exoplayer/drm/c;)V
    .locals 1

    .line 25
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->a:Lcom/esfile/screen/recorder/player/exo/a$k;

    if-eqz v0, :cond_0

    .line 26
    invoke-interface {v0}, Lcom/esfile/screen/recorder/player/exo/a$k;->cancel()V

    :cond_0
    if-gez p2, :cond_1

    .line 27
    invoke-virtual {p1}, Landroid/net/Uri;->getLastPathSegment()Ljava/lang/String;

    move-result-object p2

    invoke-static {p2}, Lcom/google/android/exoplayer/util/o;->b(Ljava/lang/String;)I

    move-result p2

    .line 28
    :cond_1
    invoke-direct {p0, p1, p2, p3}, Lcom/esfile/screen/recorder/player/exo/a;->b(Landroid/net/Uri;ILcom/google/android/exoplayer/drm/c;)Lcom/esfile/screen/recorder/player/exo/a$k;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->a:Lcom/esfile/screen/recorder/player/exo/a$k;

    return-void
.end method

.method public a(Landroid/view/Surface;)V
    .locals 0

    .line 69
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->t:Lcom/esfile/screen/recorder/player/exo/a$h;

    if-eqz p1, :cond_0

    .line 70
    invoke-interface {p1}, Lcom/esfile/screen/recorder/player/exo/a$h;->a()V

    :cond_0
    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/player/exo/a$b;)V
    .locals 0

    .line 8
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->s:Lcom/esfile/screen/recorder/player/exo/a$b;

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/player/exo/a$c;)V
    .locals 0

    .line 2
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->l:Lcom/esfile/screen/recorder/player/exo/a$c;

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/player/exo/a$d;)V
    .locals 0

    .line 3
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->m:Lcom/esfile/screen/recorder/player/exo/a$d;

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/player/exo/a$e;)V
    .locals 0

    .line 6
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->p:Lcom/esfile/screen/recorder/player/exo/a$e;

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/player/exo/a$f;)V
    .locals 0

    .line 5
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->o:Lcom/esfile/screen/recorder/player/exo/a$f;

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/player/exo/a$g;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->k:Lcom/esfile/screen/recorder/player/exo/a$g;

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/player/exo/a$h;)V
    .locals 0

    .line 9
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->t:Lcom/esfile/screen/recorder/player/exo/a$h;

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/player/exo/a$i;)V
    .locals 0

    .line 7
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->q:Lcom/esfile/screen/recorder/player/exo/a$i;

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/player/exo/a$j;)V
    .locals 0

    .line 4
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->n:Lcom/esfile/screen/recorder/player/exo/a$j;

    return-void
.end method

.method public a(Lcom/google/android/exoplayer/ExoPlaybackException;)V
    .locals 1

    const/4 v0, 0x1

    .line 42
    iput v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->d:I

    .line 43
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->m:Lcom/esfile/screen/recorder/player/exo/a$d;

    if-eqz v0, :cond_0

    .line 44
    invoke-interface {v0, p0, p1}, Lcom/esfile/screen/recorder/player/exo/a$d;->a(Lcom/esfile/screen/recorder/player/exo/a;Ljava/lang/Exception;)Z

    :cond_0
    return-void
.end method

.method public a(Lcom/google/android/exoplayer/MediaCodecTrackRenderer$DecoderInitializationException;)V
    .locals 1

    .line 55
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->o:Lcom/esfile/screen/recorder/player/exo/a$f;

    if-eqz v0, :cond_0

    .line 56
    invoke-interface {v0, p1}, Lcom/esfile/screen/recorder/player/exo/a$f;->a(Lcom/google/android/exoplayer/MediaCodecTrackRenderer$DecoderInitializationException;)V

    :cond_0
    return-void
.end method

.method public a(Lcom/google/android/exoplayer/audio/AudioTrack$InitializationException;)V
    .locals 1

    .line 57
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->o:Lcom/esfile/screen/recorder/player/exo/a$f;

    if-eqz v0, :cond_0

    .line 58
    invoke-interface {v0, p1}, Lcom/esfile/screen/recorder/player/exo/a$f;->a(Lcom/google/android/exoplayer/audio/AudioTrack$InitializationException;)V

    :cond_0
    return-void
.end method

.method public a(Lcom/google/android/exoplayer/audio/AudioTrack$WriteException;)V
    .locals 1

    .line 59
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->o:Lcom/esfile/screen/recorder/player/exo/a$f;

    if-eqz v0, :cond_0

    .line 60
    invoke-interface {v0, p1}, Lcom/esfile/screen/recorder/player/exo/a$f;->a(Lcom/google/android/exoplayer/audio/AudioTrack$WriteException;)V

    :cond_0
    return-void
.end method

.method public a(Ljava/lang/String;ILcom/google/android/exoplayer/drm/c;)V
    .locals 1

    .line 17
    invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    .line 18
    invoke-virtual {v0}, Landroid/net/Uri;->getScheme()Ljava/lang/String;

    move-result-object v0

    .line 19
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 20
    iget-object p2, p0, Lcom/esfile/screen/recorder/player/exo/a;->a:Lcom/esfile/screen/recorder/player/exo/a$k;

    if-eqz p2, :cond_0

    .line 21
    invoke-interface {p2}, Lcom/esfile/screen/recorder/player/exo/a$k;->cancel()V

    .line 22
    :cond_0
    new-instance p2, Lcom/esfile/screen/recorder/player/exo/b;

    iget-object p3, p0, Lcom/esfile/screen/recorder/player/exo/a;->j:Landroid/content/Context;

    const-string v0, "DuMediaPlayer"

    .line 23
    invoke-static {p3, v0}, Lcom/google/android/exoplayer/util/o;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p2, p3, v0, p1}, Lcom/esfile/screen/recorder/player/exo/b;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    iput-object p2, p0, Lcom/esfile/screen/recorder/player/exo/a;->a:Lcom/esfile/screen/recorder/player/exo/a$k;

    goto :goto_0

    .line 24
    :cond_1
    invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object p1

    invoke-virtual {p0, p1, p2, p3}, Lcom/esfile/screen/recorder/player/exo/a;->a(Landroid/net/Uri;ILcom/google/android/exoplayer/drm/c;)V

    :goto_0
    return-void
.end method

.method public a(Ljava/lang/String;JJ)V
    .locals 6

    .line 65
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->p:Lcom/esfile/screen/recorder/player/exo/a$e;

    if-eqz v0, :cond_0

    move-object v1, p1

    move-wide v2, p2

    move-wide v4, p4

    .line 66
    invoke-interface/range {v0 .. v5}, Lcom/esfile/screen/recorder/player/exo/a$e;->a(Ljava/lang/String;JJ)V

    :cond_0
    return-void
.end method

.method public a(Ljava/util/List;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/y90;",
            ">;)V"
        }
    .end annotation

    .line 67
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->r:Lcom/esfile/screen/recorder/player/exo/a$a;

    if-eqz v0, :cond_0

    const/4 v0, 0x2

    invoke-virtual {p0, v0}, Lcom/esfile/screen/recorder/player/exo/a;->a(I)I

    move-result v0

    const/4 v1, -0x1

    if-eq v0, v1, :cond_0

    .line 68
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->r:Lcom/esfile/screen/recorder/player/exo/a$a;

    invoke-interface {v0, p1}, Lcom/esfile/screen/recorder/player/exo/a$a;->a(Ljava/util/List;)V

    :cond_0
    return-void
.end method

.method public a(Z)V
    .locals 1

    .line 37
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    invoke-interface {v0, p1}, Lcom/google/android/exoplayer/g;->a(Z)V

    return-void
.end method

.method public a(ZII)V
    .locals 0

    .line 41
    invoke-direct {p0, p3}, Lcom/esfile/screen/recorder/player/exo/a;->b(I)V

    return-void
.end method

.method a([Lcom/google/android/exoplayer/u;Lcom/google/android/exoplayer/upstream/a;)V
    .locals 3

    const/4 p2, 0x0

    const/4 v0, 0x0

    :goto_0
    const/4 v1, 0x4

    if-ge v0, v1, :cond_1

    .line 29
    aget-object v1, p1, v0

    if-nez v1, :cond_0

    .line 30
    new-instance v1, Lcom/google/android/exoplayer/f;

    invoke-direct {v1}, Lcom/google/android/exoplayer/f;-><init>()V

    aput-object v1, p1, v0

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    const/4 v0, 0x1

    .line 31
    aget-object v1, p1, v0

    iput-object v1, p0, Lcom/esfile/screen/recorder/player/exo/a;->i:Lcom/google/android/exoplayer/u;

    .line 32
    aget-object v1, p1, p2

    iput-object v1, p0, Lcom/esfile/screen/recorder/player/exo/a;->h:Lcom/google/android/exoplayer/u;

    .line 33
    instance-of v2, v1, Lcom/google/android/exoplayer/MediaCodecTrackRenderer;

    if-eqz v2, :cond_2

    check-cast v1, Lcom/google/android/exoplayer/MediaCodecTrackRenderer;

    iget-object v0, v1, Lcom/google/android/exoplayer/MediaCodecTrackRenderer;->h:Lcom/google/android/exoplayer/c;

    goto :goto_1

    :cond_2
    aget-object v1, p1, v0

    instance-of v1, v1, Lcom/google/android/exoplayer/MediaCodecTrackRenderer;

    if-eqz v1, :cond_3

    aget-object v0, p1, v0

    check-cast v0, Lcom/google/android/exoplayer/MediaCodecTrackRenderer;

    iget-object v0, v0, Lcom/google/android/exoplayer/MediaCodecTrackRenderer;->h:Lcom/google/android/exoplayer/c;

    .line 34
    :cond_3
    :goto_1
    invoke-direct {p0, p2}, Lcom/esfile/screen/recorder/player/exo/a;->b(Z)V

    .line 35
    iget-object p2, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    invoke-interface {p2, p1}, Lcom/google/android/exoplayer/g;->a([Lcom/google/android/exoplayer/u;)V

    const/4 p1, 0x3

    .line 36
    iput p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->d:I

    return-void
.end method

.method public b()V
    .locals 1

    const/4 v0, 0x0

    .line 3
    iput-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->g:Landroid/view/Surface;

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    invoke-interface {v0}, Lcom/google/android/exoplayer/g;->b()V

    const/4 v0, 0x1

    .line 5
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/player/exo/a;->b(Z)V

    return-void
.end method

.method public b(F)V
    .locals 1

    const/4 v0, 0x0

    .line 6
    invoke-virtual {p0, p1, v0}, Lcom/esfile/screen/recorder/player/exo/a;->a(FZ)V

    return-void
.end method

.method public b(J)V
    .locals 1

    const/4 v0, 0x1

    .line 10
    invoke-virtual {p0, p1, p2, v0}, Lcom/esfile/screen/recorder/player/exo/a;->a(JZ)V

    return-void
.end method

.method public b(Landroid/view/Surface;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/a;->g:Landroid/view/Surface;

    const/4 p1, 0x0

    .line 2
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/player/exo/a;->b(Z)V

    return-void
.end method

.method public c()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    invoke-interface {v0}, Lcom/google/android/exoplayer/g;->a()I

    move-result v0

    return v0
.end method

.method public d()J
    .locals 5

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    invoke-interface {v0}, Lcom/google/android/exoplayer/g;->getDuration()J

    move-result-wide v0

    const-wide/16 v2, -0x1

    cmp-long v4, v0, v2

    if-nez v4, :cond_0

    const-wide/16 v0, 0x0

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    invoke-interface {v0}, Lcom/google/android/exoplayer/g;->getCurrentPosition()J

    move-result-wide v0

    :goto_0
    return-wide v0
.end method

.method public e()J
    .locals 5

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    invoke-interface {v0}, Lcom/google/android/exoplayer/g;->getDuration()J

    move-result-wide v0

    const-wide/16 v2, -0x1

    cmp-long v4, v0, v2

    if-nez v4, :cond_0

    const-wide/16 v0, 0x0

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    invoke-interface {v0}, Lcom/google/android/exoplayer/g;->getDuration()J

    move-result-wide v0

    :goto_0
    return-wide v0
.end method

.method f()Landroid/os/Handler;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->c:Landroid/os/Handler;

    return-object v0
.end method

.method public g()I
    .locals 4

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->d:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    return v1

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    invoke-interface {v0}, Lcom/google/android/exoplayer/g;->getPlaybackState()I

    move-result v0

    .line 3
    iget v2, p0, Lcom/esfile/screen/recorder/player/exo/a;->d:I

    const/4 v3, 0x3

    if-ne v2, v3, :cond_1

    const/4 v2, 0x1

    if-ne v0, v2, :cond_1

    return v1

    :cond_1
    return v0
.end method

.method public h()Z
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    invoke-interface {v0}, Lcom/google/android/exoplayer/g;->c()Z

    move-result v0

    return v0
.end method

.method public i()V
    .locals 2

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->d:I

    const/4 v1, 0x3

    if-ne v0, v1, :cond_0

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    invoke-interface {v0}, Lcom/google/android/exoplayer/g;->stop()V

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->a:Lcom/esfile/screen/recorder/player/exo/a$k;

    invoke-interface {v0}, Lcom/esfile/screen/recorder/player/exo/a$k;->cancel()V

    const/4 v0, 0x0

    .line 4
    iput-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->h:Lcom/google/android/exoplayer/u;

    .line 5
    iput-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->i:Lcom/google/android/exoplayer/u;

    const/high16 v0, 0x3f800000    # 1.0f

    .line 6
    iput v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->u:F

    const/4 v0, 0x2

    .line 7
    iput v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->d:I

    .line 8
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/exo/a;->k()V

    .line 9
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->a:Lcom/esfile/screen/recorder/player/exo/a$k;

    invoke-interface {v0, p0}, Lcom/esfile/screen/recorder/player/exo/a$k;->a(Lcom/esfile/screen/recorder/player/exo/a;)V

    return-void
.end method

.method public j()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->a:Lcom/esfile/screen/recorder/player/exo/a$k;

    invoke-interface {v0}, Lcom/esfile/screen/recorder/player/exo/a$k;->cancel()V

    const/4 v0, 0x1

    .line 2
    iput v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->d:I

    const/4 v0, 0x0

    .line 3
    iput-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->g:Landroid/view/Surface;

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    invoke-interface {v0}, Lcom/google/android/exoplayer/g;->b()V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->b:Lcom/google/android/exoplayer/g;

    invoke-interface {v0}, Lcom/google/android/exoplayer/g;->release()V

    const/high16 v0, 0x3f800000    # 1.0f

    .line 6
    iput v0, p0, Lcom/esfile/screen/recorder/player/exo/a;->u:F

    return-void
.end method
